package com.atguigu.jedis;

import org.junit.Test;
import redis.clients.jedis.Jedis;

public class MyRedisClient {

    @Test
    public void testConnection() {
        Jedis jedis = new Jedis("192.168.200.100", 16379);

        jedis.auth("atguigu");

        String ping = jedis.ping();

        System.out.println("ping = " + ping);

    }

}
